import request from '@/router/axios'

/**
 * 分页列表

 */
export const getTaskLabelList = (params) => {
  return request({
    url: '/backend/taskLabel/getPage',
    method: 'post',
    data: params
  })
}

/**
 * 启用或停用

 */
export const taskLabelEnable = (params) => {
  return request({
    url: '/backend/taskLabel/enable',
    method: 'post',
    params: params
  })
}

/**
 * 详情

 */
export const getDetail = (params) => {
  return request({
    url: '/backend/taskLabel/getById',
    method: 'post',
    params: params
  })
}

/**
 * 新增或修改

 */
export const taskLabelEdit = (params) => {
  return request({
    url: '/backend/taskLabel/edit',
    method: 'post',
    data: params
  })
}

/**
 * 删除

 */
export const taskLabelDelete = (params) => {
  return request({
    url: '/backend/taskLabel/delete',
    method: 'post',
    params: params
  })
}

/**
 * 获取排序列表

 */
export const getSortList = () => {
  return request({
    url: '/backend/taskLabel/getSortList',
    method: 'post',
    params: {}
  })
}

/**
 * 排序

 */
export const taskLabelSort = (params) => {
  return request({
    url: '/backend/taskLabel/sort',
    method: 'post',
    data: params
  })
}
